package com.docker.fjk.service.impl;

import java.util.List;
import com.docker.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.docker.fjk.mapper.DockerFeeMapper;
import com.docker.fjk.domain.DockerFee;
import com.docker.fjk.service.IDockerFeeService;

/**
 * 费用设置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-10
 */
@Service
public class DockerFeeServiceImpl implements IDockerFeeService 
{
    @Autowired
    private DockerFeeMapper dockerFeeMapper;

    /**
     * 查询费用设置
     * 
     * @param id 费用设置主键
     * @return 费用设置
     */
    @Override
    public DockerFee selectDockerFeeById(Long id)
    {
        return dockerFeeMapper.selectDockerFeeById(id);
    }

    /**
     * 查询费用设置列表
     * 
     * @param dockerFee 费用设置
     * @return 费用设置
     */
    @Override
    public List<DockerFee> selectDockerFeeList(DockerFee dockerFee)
    {
        return dockerFeeMapper.selectDockerFeeList(dockerFee);
    }

    /**
     * 新增费用设置
     * 
     * @param dockerFee 费用设置
     * @return 结果
     */
    @Override
    public int insertDockerFee(DockerFee dockerFee)
    {
        dockerFee.setCreateTime(DateUtils.getNowDate());
        return dockerFeeMapper.insertDockerFee(dockerFee);
    }

    /**
     * 修改费用设置
     * 
     * @param dockerFee 费用设置
     * @return 结果
     */
    @Override
    public int updateDockerFee(DockerFee dockerFee)
    {
        return dockerFeeMapper.updateDockerFee(dockerFee);
    }

    /**
     * 批量删除费用设置
     * 
     * @param ids 需要删除的费用设置主键
     * @return 结果
     */
    @Override
    public int deleteDockerFeeByIds(Long[] ids)
    {
        return dockerFeeMapper.deleteDockerFeeByIds(ids);
    }

    /**
     * 删除费用设置信息
     * 
     * @param id 费用设置主键
     * @return 结果
     */
    @Override
    public int deleteDockerFeeById(Long id)
    {
        return dockerFeeMapper.deleteDockerFeeById(id);
    }
}
